package tests;

import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;
import java.io.IOException;
import javax.activity.InvalidActivityException;
import org.junit.Before;
import org.junit.Test;
import code.PhotoAlbumJanitor;

public class PhotoAlbumJanitorTest {

	/**
	 * Setup by cleaning up the previous run
	 * 
	 * @throws InterruptedException
	 * @throws IOException
	 * @throws InvalidActivityException
	 */
	@Before
	public void setUp() throws InvalidActivityException, IOException, InterruptedException {
		TestHelper.cleanDirectory(TestHelper.RootDir);
	}

	@Test
	public void testPhotoAlbumJanitor_Correct() {
		assertTrue(PhotoAlbumJanitor.Correct());
	}

	@Test
	public void testPhotoAlbumJanitor_Incorrect() {
		assertFalse(PhotoAlbumJanitor.Incorrect());
	}
}
